package com.cs171.market.service;

import com.cs171.market.Repository.UserRepository;
import com.cs171.market.entity.User;
import com.cs171.market.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Endy
 * @create 2020 - 05 - 22 - 12:21
 * @date 2020/5/22 - 12:21
 */


@Service
public class UserService {
    /**
    @Autowired
    UserMapper userMapper;
    public User findByUsername(User user){
        return userMapper.findByUsername(user.getUname());
    }
    public User findUserById(String userId) {
        return userMapper.findUserById(userId);
    }
    */


}

